<template>
  <el-table :key="tableKey" :data="total_list" v-loading="loading"  border  highlight-current-row style="width: 100%;"  
      :default-sort = "{prop: 'all_online_order.all_order_count', order: 'descending'}">
      <el-table-column label="姓名" align="center" width="120" prop="data_name" ></el-table-column>
      <el-table-column label="应收订单" align="center" sortable   prop="all_online_order.all_order_count" ></el-table-column>
      <el-table-column label="逾期总数" align="center" sortable   prop="m.all" ></el-table-column>
      <el-table-column label="应收总金额" align="center" sortable   prop="all_online_order.should_money" ></el-table-column>
      <el-table-column label="M0户数" align="center" sortable   prop="m.count.m0_count" ></el-table-column>
      <el-table-column label="M0金额" align="center" sortable   prop="m.overdue_count.m0_count" ></el-table-column>
      <el-table-column label="M1户数" align="center" sortable   prop="m.count.m1_count" ></el-table-column>
      <el-table-column label="M1金额" align="center" sortable   prop="m.overdue_count.m1_count" ></el-table-column>
      <el-table-column label="M2户数" align="center" sortable   prop="m.count.m2_count" ></el-table-column>
      <el-table-column label="M2金额" align="center" sortable   prop="m.overdue_count.m2_count" ></el-table-column>
      <!-- <el-table-column label="M3户数" align="center" sortable   prop="m.count.m3_count" ></el-table-column>
      <el-table-column label="M3金额" align="center" sortable   prop="m.overdue_count.m3_count" ></el-table-column> -->
      <el-table-column label="M3+户数" align="center" sortable   prop="m.count.m4_count" ></el-table-column>
      <el-table-column label="M3+金额" align="center" sortable   prop="m.overdue_count.m4_count" ></el-table-column>
    </el-table>
</template>

<script>

export default {

  data() {
    return {
      tableKey: 0,
    }
  },
  props:["total_list",'loading'],

  created() {
  },
  methods: {
    
  }
}
</script>
